package com.eastfair.questionnaire.dto;

import com.eastfair.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 问卷
 * </p>
 *
 * @author yuwx
 * @since 2021-08-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "QuestionnaireQuery", description = "问卷")
public class QuestionnaireQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    public interface validateBase {}

    public interface validateGet{}

    public interface validateSubject {}
    /**
     * 项目ID
     */
    @ApiModelProperty(value = "ID")
    @NotNull(groups = {validateGet.class}, message =  "ID")
    private Long id;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
//    @NotNull(groups = {validateBase.class}, message =  "项目id")
    private Long projectId;

    /**
     * 主体类型
     */
    @ApiModelProperty(value = "主体类型")
    @NotNull(groups = {validateSubject.class}, message =  "主体类型")
    private String subjectType;
    /**
     * 主体id
     */
    @ApiModelProperty(value = "主体id")
    @NotNull(groups = {validateSubject.class}, message =  "主体id")
    private Long subjectId;
}
